package com.ibeeking.found.cop.service.common.enums;

public enum WxCpGroupJoinSceneEnum {
    GROUP_JOIN_SCENE_WXCA(1, "群的小程序插件"),
    GROUP_JOIN_SCENE_QRCODE(2, "群的二维码插件"),
    ;
    private Integer code;
    private String desc;

    WxCpGroupJoinSceneEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(Integer code) {
        for (WxCpGroupJoinSceneEnum enumObj : values()) {
            if (enumObj.getCode().equals(code)) {
                return enumObj.getDesc();
            }
        }
        return null;
    }
}
